/**
 * 这个文件用于单独配置请求的URL地址
 */

/**
 * 常量对象 ，里面包含相关URL的信息
 */
const ApiURL = {
  getJokeURL: function(previousJokeIds){
    return `https://www.softeem.xin/s/v2/topic/list/29/${previousJokeIds.join("-")}/budejie-android-8.0.1/0-25.json?device=MIX&t=${new Date().getTime()}&appname=budejie&market=baidu&client=android&uid=&udid=863595494315117&from=android&ver=8.0.1&jdk=1`;
  },
  shequItemListURL:`https://www.softeem.xin/d.api/forum/subscribe/budejie-android-8.0.1.json?`,
  commentListURL:function(itemId){
    return `https://www.softeem.xin/c.api/topic/comment_list/${itemId}/0/budejie-android-8.0.1/0-20.json?`;
  },
  getImageListURL:function(previousImageIds){
    return `https://www.softeem.xin/s/v2/topic/list/10/${previousImageIds.join("-")}/budejie-android-8.0.1/0-25.json?device=MIX&t=${new Date().getTime()}&appname=budejie&market=baidu&client=android&uid=&udid=863595494315117&from=android&ver=8.0.1&jdk=1`;
  },
  getVideoListURL:function(previousVideoIds){
    return `https://www.softeem.xin/s/v2/topic/list/41/${previousVideoIds.join("-")}/budejie-android-8.0.1/0-25.json?device=MIX&t=${new Date().getTime()}&appname=budejie&market=baidu&client=android&uid=&udid=863595494315117&from=android&ver=8.0.1&jdk=1`;
  },
  getRecommendListURL:function(previousRecommendIds){
    return `https://www.softeem.xin/s/v2/topic/list/1/${previousRecommendIds.join("-")}/budejie-android-8.0.1/0-25.json?device=MIX&t=${new Date().getTime()}&appname=budejie&market=baidu&client=android&uid=&udid=863595494315117&from=android&ver=8.0.1&jdk=1`;
  }
}

//导出这个对象
export default ApiURL;
